package com.dly.hope.model.ro;

import com.dly.hope.type.MessageType;
import com.dly.hope.type.SessionType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel
public class ChatListRo {

    /**
     * 接受方id
     */
    @ApiModelProperty(name = "acceptId",required = true, example = "Email:账号登入 Account:邮箱登入")
    @NotBlank(message = "账号不能为空")
    private String acceptId;

    /**
     * 类型
     */
    @ApiModelProperty(name = "sessionType",required = true, example = "GROUP:群组 ALONG:个人")
    @NotNull(message = "登入类型不能为空/或者类型错误")  //枚举类型不能用@NotBlank
    private SessionType sessionType;
}
